# apps/menus/urls.py
from django.urls import path, include
from rest_framework.routers import SimpleRouter
from . import views

router = SimpleRouter()
router.register(r'menus', views.MenuViewSet, basename='menu')

urlpatterns = [
    path('', include(router.urls)),
    path('export/', views.MenuViewSet.as_view({'get': 'export'}), name='menu-export'),
    path('import/', views.MenuViewSet.as_view({'post': 'import_data'}), name='menu-import'),
]